<?php
/**
 * Created by PhpStorm.
 * User: 氓羽
 * Date: 2018-4-19
 * Time: 22:36
 */
interface Demo1{
    const AA = 111;
    public function eat();
}

interface Demo2{
    public function food();
}

class Person implements Demo1, Demo2{
    public function eat()
    {
        echo "就知道吃";
    }
    public function food()
    {
        echo "好吃的，略略略";
    }
}

$p1 = new Person();
$p1->food();
$p1->eat();
echo (Person::AA);